/* 基础样式重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --light-gray: #f5f7fa;
    --mid-gray: #e1e5e9;
    --dark-gray: #666;
    --success-color: #00b578;
    --error-color: #ff4757;
    --warning-color: #ff9800;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    background: var(--primary-gradient);
    min-height: 100vh;
    padding-bottom: 20px;
}

/* 个人资料列表样式 */
.group {
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 列表项样式优化 */
.ant-list {
    background-color: transparent !important;
}

.ant-list-item {
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: var(--transition-base);
}

.ant-list-item:last-child {
    border-bottom: none !important;
}

.ant-list-item:hover {
    background-color: rgba(255, 255, 255, 0.6) !important;
}

.ant-list-item:active {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* 头像样式 */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    /* box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2); */
    transition: var(--transition-base);
    object-fit: cover;
}

.avatar:hover {
    transform: scale(1.08);
    /* box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3); */
}

/* 列表项额外内容样式 */
.nickname,
.qianming,
.email,
.realName {
    color: var(--dark-gray);
    font-size: 15px;
    transition: var(--transition-base);
}

.qianming {
    color: #888;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email {
    color: var(--primary-color);
}

/* 弹窗遮罩层 */
.modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 人脸识别圆形弹窗 */
.modalContent {
    background: #fff;
    border-radius: 50%;
    width: min(90vw, 420px);
    height: min(90vw, 420px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    transform: scale(0.9);
    animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 背景闪烁动画 */
.flashBg {
    animation: flash 1.5s infinite alternate;
}

@keyframes flash {
    0% {
        background-color: #fff;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    }

    100% {
        background-color: var(--flash-color, #ffe066);
        box-shadow: 0 15px 60px rgba(255, 224, 102, 0.4);
    }
}

/* 视频容器样式 */
.video {
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    background: #222;
    transition: var(--transition-base);
    width: 80%;
    height: 80%;
}

/* 隐藏的Canvas */
.hiddenCanvas {
    display: none;
}

/* 弹窗消息文本 */
.modalMessage {
    margin-top: 15px;
    min-height: 24px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: var(--dark-gray);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
    transition: var(--transition-base);
}

/* 步骤文本 */
.modalStep {
    margin-top: 8px;
    font-size: 14px;
    color: #777;
    text-align: center;
    font-weight: 500;
}

/* 关闭按钮通用样式 */
.closeButton {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closeButton:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1) rotate(90deg);
}

/* 矩形弹窗通用样式 */
.modalContent:not(.video-modal) {
    border-radius: 20px;
    width: min(90vw, 380px);
    padding: 28px 24px 24px;
    height: auto;
}

/* 弹窗标题 */
.modalTitle {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 22px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
}

.modalTitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* 输入框样式 */
.modalInput {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border: 1px solid var(--mid-gray);
    border-radius: 10px;
    margin-bottom: 16px;
    outline: none;
    transition: var(--transition-base);
    background: var(--light-gray);
}

.modalInput:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 错误消息 */
.errorMessage {
    color: var(--error-color);
    font-size: 13px;
    margin: -10px 0 12px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.errorMessage::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    font-size: 10px;
}

/* 按钮容器 */
.modalButtons {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* 取消按钮 */
.modalCancelButton {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--light-gray);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 500;
    color: var(--dark-gray);
}

.modalCancelButton:hover {
    background: #e8eaed;
    transform: translateY(-2px);
}

/* 确认按钮 */
.modalConfirmButton {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 600;
}

.modalConfirmButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modalConfirmButton:active {
    transform: translateY(0);
}

/* 滑块验证容器 */
.rc-slider-captcha {
    width: 100% !important;
    margin-top: 10px;
}

/* 导航栏样式优化 */
.antd-mobile-nav-bar {
    background: var(--primary-gradient) !important;
}

.antd-mobile-nav-bar .title {
    color: white !important;
    font-weight: 600 !important;
}

.antd-mobile-nav-bar .back {
    color: white !important;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .modalContent {
        width: 92vw;
        height: 92vw;
    }

    .modalMessage {
        font-size: 14px;
    }

    .modalStep {
        font-size: 12px;
    }

    .closeButton {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}